package com.logistics.utils.constants;
import java.util.Map;
import java.util.HashMap;

public class Constants {

    // 连接状态已连接
    public static String CONNECTION_STATE_SUCCESS = "1";
    // 链接状态关闭
    public static String CONNECTION_STATE_CLOSED = "0";
    // 设备状态 待命
    public static String HANDLER_STATE_STANDBY = "1";
    // 设备状态 执行任务
    public static String HANDLER_STATE_EXECUTE_TASK = "2";
    // 设备状态  充电
    public static String HANDLER_STATE_CHARGE = "3";

    // 配送单状态 等待配置
    public static String DELIVERY_STATE_STANDBY = "0";
    // 锁定状态
    public static String DELIVERY_STATE_LOCK = "99";
    // 配送单状态 配送中
    public static String DELIVERY_STATE_IN = "20";
    // 配送单状态 配送完成
    public static String DELIVERY_STATE_SUCCESS = "30";
    // 配送单状态 配送失败
    public static String DELIVERY_STATE_FAIL = "40";
    // 配送单状态 取消配送
    public static String DELIVERY_STATE_CANCEL = "-10";

    // 拣配单状态 拣配中
    public static String PICK_STATE_IN = "0";
    // 拣配单状态 拣配完成
    public static String PICK_STATE_SUCCESS = "10";
    // 拣配单状态 配送中
    public static String PICK_STATE_DELIVERY_IN = "20";
    // 任务状态 执行完成
    public static String TASK_STATE_SUCCESS = "2";

    // 操作AGC类型 任务
    public static Integer TYPE_SCHEDULING_TASK = 1;
    // 心跳
    public static Integer TYPE_HEART = 5;
    // 组件类型 - AGV
    public static String COMPONENTS_TYPE_CAR = "car";
    // 组件类型 - 站点
    public static String COMPONENTS_TYPE_LOCATION = "location";
    // 组件类型 - 停车位
    public static String COMPONENTS_TYPE_CAR_LOCATION = "carLocation";
    // 是否是空托 - 空托
    public static Boolean CONTAINER_IS_EMPTY_YES = true;
    // 是否是空托 - 不是空托
    public static Boolean CONTAINER_IS_EMPTY_NO = false;
    // 缺料状态  缺料
    public static Integer LACK_MATERIAL_STATUS_YES = 0;
    // 缺料状态  不缺料
    public static Integer LACK_MATERIAL_STATUS_NO = 1;
    // 缺料状态 部分拣配
    public static Integer LACK_MATERIAL_STATUS = 2;

    // 条码类型 - 站点
    public static String CODE_TYPE_LOCATION = "1";

    //站点锁定状态 - 锁定
    public static String LOCATION_LOCK = "1";

    //站点锁定状态 - 释放
    public static String LOCATION_RELEASE = "0";
    // 物料列表
    public static String MATERIAL_LIST = "1";
    // 缺料列表
    public static String LACK_MATERIAL_LIST = "0";

    // 货物配送
    public static String DELIVERY_TYPE_DELIVERY = "1";
    // 空托呼叫
    public static String DELIVERY_TYPE_CALL_CAR = "2";
    // 空托回收
    public static String DELIVERY_TYPE_RECOVERY = "3";

    // AGV类型 叉车
    public static String AGV_TYPE_FORKLIFT = "0";
    // AGV类型 平衡重式
    public static String AGV_TYPE_BALANCE = "1";

    // 托盘最大层
    public static String CONTAINER_MAX_STRATUM = "01";

    // 站点区域  空退回收区
    public static String LOCATION_AREA_CK_KT_A = "CK-KT-A";

    // 站点区域 立体库
    public static String LOCATION_AREA_LTK = "LTK";

    // 拣配区域 联合工坊
    public static String PICK_AREA_LHGF = "LHGF";

    // 拣配区域 集散中心
    public static String PICK_AREA_JSZX = "JSZX";

    //站点所在班组编码-退料
    public static String LOCATION_WC_CODE_TL_TYPE = "02";

    // 装配班组编号
    public static String WC_CODE_ASSEMBLE = "2711";

    // 拣配单类型 配送单
    public static String PICK_TYPE_DELIVERY = "1";

    // 拣配单类型  退货
    public static String PICK_TYPE_BACK = "2";

    // 拣配单类型  非立体库
    public static String PICK_TYPE_NOT_CUBE = "3";

    // 拣配单类型  涂装拣配
    public static String PICK_TYPE_PAINTING = "4";

    // 任务单号前缀
    public static String TASK_NO_PREFIX = "W-";

    // ERP订单状态 订单下达
    public static String ERP_ORDER_STATUS_REACH = "R";

    // ERP订单状态 开工
    public static String ERP_ORDER_STATUS_START = "S";

    // ERP订单状态 完工
    public static String ERP_ORDER_STATUS_END = "E";

    // ERP订单状态 关闭
    public static String ERP_ORDER_STATUS_CLOSE = "C";

    // ERP是否为内部交接件 不是
    public static String ERP_ORDER_IS_NOT_NBJJ = "0";

    // ERP是否为内部交接件 是
    public static String ERP_ORDER_IS_NBJJ = "1";

    // 托盘高度
    public static String CONFIG_CONTAINER_HEIGHT = "03";

    //PDA条件过滤器TabFilter组件Type radio
    public static String TABFILTER_TYPE_RADIO = "radio";

    //PDA条件过滤器TabFilter组件Type checkBox
    public static String TABFILTER_TYPE_CHECKBOX = "checkbox";

    //PDA条件过滤器TabFilter组件Type unLimit
    public static String TABFILTER_TYPE_UNLIMIT = "unlimit";

    // ERP-来源方式-无需求
    public static String ERP_SOURCE_METHOD_NO_DEMAND = "无需求";

    // ERP-来源方式-直流
    public static String ERP_SOURCE_METHOD_DIRECT = "直流";

    // ERP-来源方式-工序报工周转
    public static String ERP_SOURCE_METHOD_PROCESS_REPORT_TRANSFER = "工序报工周转";

    // ERP-来源方式-内部交接
    public static String ERP_SOURCE_METHOD_INSIDE_TRANSFER = "内部交接";

    // ERP-来源方式-外协回厂
    public static String ERP_SOURCE_METHOD_OUT_RETURN = "外协回厂";

    // 地图宽度
    public static String CONFIG_MAP_WIDTH = "04";
    // 地图高度
    public static String CONFIG_MAP_HEIGHT = "05";
    // 地图左下角坐标
    public static String CONFIG_MAP_X = "06";
    // 地图左下角坐标
    public static String CONFIG_MAP_Y = "07";
    // 地图计算比例
    public static String CONFIG_MAP_PROPORTION = "08";

    // 托盘类型
    public static Map<String, String> CONTAINER_TYPE = new HashMap<String, String>(){{
        put("1","川字托盘");
        put("2","折叠料框");
        put("3","大托盘");
    }};


}
